<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>订单成功</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/login2.css">
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <!-- 引入Font Awesome图标库 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
    <style>
        .img-fluid {
            height: 40px;
            width: 40px;
            margin-bottom: 10px;
        }

        /* 自定义样式 */
        .panel-success {
            border-top: 4px solid #d6e9c6;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        .panel-title {
            font-size: 1.5em;
        }

        .panel-body h3 {
            font-size: 1.75em;
        }

        .payment-method {
            margin-top: 20px;
        }

        .payment-method img {
            max-width: 100px;
            margin-right: 10px;
        }
    </style>
</head>
<body>
<%@ include file="header.jsp" %>

<div class="container">
    <hr>
    <div class="row" style="width: 60%; margin: 50px auto;">
        <div class="panel panel-success">
            <div class="panel-heading">
                <h3 class="panel-title">订单提示</h3>
            </div>
            <div class="panel-body">
                <h3 class="text-success">
                    <i class="fas fa-check-circle"></i> 订单添加成功!!
                </h3>
                <hr>
                <h4>订单号: <span class="text-info">${order.orderId}</span></h4>
                <h4>订单总金额: <span class="text-info">￥${order.totalPrice}</span></h4>
                <div class="payment-method text-center">
                    <span class="h2">选择支付方式</span>
                    <hr>
                    <img src="image/wechat-pay.png" alt="微信支付" class="img-fluid">
                    <%--                    <img src="image/alipay.png" alt="支付宝支付" class="img-fluid">--%>
                    <!-- 可以添加更多支付方式的图标 -->
                </div>
                <div class="text-center">
                    <a href="${pageContext.request.contextPath}/paySuccess?orderId=${order.orderId}"
                       class="btn btn-success btn-lg">立即支付</a>
                </div>
            </div>
        </div>
    </div>
</div>

<%@ include file="footer.jsp" %>
</body>
</html>